package Expe10;

/**
 * @Author 28021
 * @Date 2022/11/15
 */
public class Triangular extends Geometry{
    double a,b,c;
    Triangular(double a,double b,double c){
        this.a=a;
        this.b=b;
        this.c=c;
    }
    public double getArea(){
        double p=(a+b+c)/2;
        return Math.sqrt(p*(p-a)*(p-b)*(p-c));
    }
}
